# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: GONG Chen <chen dot sst at gmail dot com>
# Contributor: 網軍總司令

pkgname=ibus-rime
pkgver=1.5.0
pkgrel=1
pkgdesc="Rime input method engine for ibus"
arch=('loong64' 'x86_64')
url="https://rime.im"
license=('GPL3')
depends=('ibus' 'libnotify' 'librime')
makedepends=('cmake')
install='ibus-rime.install'
source=("$pkgname-$pkgver.tar.gz::https://github.com/lotem/ibus-rime/archive/$pkgver.tar.gz")
sha512sums=('59b05efe7d5c7dd6dd88a213f05967b19f4946ad0685e29c6c87fbc47ffb3059cc16c88403cfbb945bcbf8637b20d34dcfd91d442c23bb6a9a18d60febbaf27b')

build() {
  cd $pkgname-$pkgver
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
